home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / unattended-upgrades.postrm < prev    next >
Text File  |  2009-07-20  |  1KB  |  57 lines

  1. #!/bin/sh
  2. #
  3. # see: dh_installdeb(1)
  4.  
  5. set -e
  6.  
  7. # summary of how this script can be called:
  8. #        * <postrm> `remove'
  9. #        * <postrm> `purge'
  10. #        * <old-postrm> `upgrade' <new-version>
  11. #        * <new-postrm> `failed-upgrade' <old-version>
  12. #        * <new-postrm> `abort-install'
  13. #        * <new-postrm> `abort-install' <old-version>
  14. #        * <new-postrm> `abort-upgrade' <old-version>
  15. #        * <disappearer's-postrm> `disappear' <overwriter>
  16. #          <overwriter-version>
  17. # for details, see http://www.debian.org/doc/debian-policy/ or
  18. # the debian-policy package
  19.  
  20.  
  21. case "$1" in
  22.     purge)
  23.     if [ -x "`which ucf 2>/dev/null`" ]; then
  24.         ucf --purge /etc/apt/apt.conf.d/20auto-upgrades
  25.     fi
  26.     rm -f /etc/apt/apt.conf.d/20auto-upgrades
  27.     ;;
  28.     
  29.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  30.     ;;
  31.  
  32.     *)
  33.         echo "postrm called with unknown argument \`$1'" >&2
  34.         exit 1
  35.     ;;
  36. esac
  37.  
  38. # dh_installdeb will replace this with shell code automatically
  39. # generated by other debhelper scripts.
  40.  
  41. # Automatically added by dh_installdebconf
  42. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  43.     . /usr/share/debconf/confmodule
  44.     db_purge
  45. fi
  46. # End automatically added section
  47. # Automatically added by dh_installinit
  48. if [ "$1" = "purge" ] ; then
  49.     update-rc.d unattended-upgrades remove >/dev/null || exit $?
  50. fi
  51. # End automatically added section
  52.  
  53.  
  54. exit 0
  55.  
  56.  
  57.